testupload: Test more formats
authorMatthias Clasen <mclasen@redhat.com>
Sat, 26 Sep 2020 21:26:12 +0000 (17:26 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 26 Sep 2020 21:26:12 +0000 (17:26 -0400)
commit593907f7b0ae5b573138b5de8fc1542d7b0c4b30
tree4f2781af55c85b8b991823405534af25adbdffc0
parent34ec226852d8f670270ba5002e85c8791b1e6435
testupload: Test more formats

Copy the format conversion code from GdkMemoryTexture
so we can produce all formats, and test them all.

The upload fast paths assume that the stride is a
multiple of four, so some of the padding values cause
it to fail. Apart from that, things seem to work for
all combinations.
tests/testupload.c